const modules: Record<string, any> = import.meta.glob('../control/**/index.vue', {
  eager: true
})
//批量导出控制器
const diyControl: Record<string, any> = {}

Object.keys(modules).forEach((key: any) => {
  const regex = /\.\/(Diy\w+)\/index\.vue/
  const name = key.match(regex)[1]
  diyControl[name] = modules[key].default
})

export default diyControl
